import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/application/Inventory_system/get_the_feign_emergency_plans_page_entity.dart';

GetTheFeignEmergencyPlansPageEntity $GetTheFeignEmergencyPlansPageEntityFromJson(Map<String, dynamic> json) {
  final GetTheFeignEmergencyPlansPageEntity getTheFeignEmergencyPlansPageEntity = GetTheFeignEmergencyPlansPageEntity();
  final String? FilingDate = jsonConvert.convert<String>(json['FilingDate']);
  if (FilingDate != null) {
    getTheFeignEmergencyPlansPageEntity.FilingDate = FilingDate;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    getTheFeignEmergencyPlansPageEntity.companyCode = companyCode;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    getTheFeignEmergencyPlansPageEntity.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    getTheFeignEmergencyPlansPageEntity.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    getTheFeignEmergencyPlansPageEntity.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    getTheFeignEmergencyPlansPageEntity.deleted = deleted;
  }
  final String? emergencyId = jsonConvert.convert<String>(json['emergencyId']);
  if (emergencyId != null) {
    getTheFeignEmergencyPlansPageEntity.emergencyId = emergencyId;
  }
  final String? emergencyPlanLevel = jsonConvert.convert<String>(json['emergencyPlanLevel']);
  if (emergencyPlanLevel != null) {
    getTheFeignEmergencyPlansPageEntity.emergencyPlanLevel = emergencyPlanLevel;
  }
  final String? emergencyPlanLevelName = jsonConvert.convert<String>(json['emergencyPlanLevelName']);
  if (emergencyPlanLevelName != null) {
    getTheFeignEmergencyPlansPageEntity.emergencyPlanLevelName = emergencyPlanLevelName;
  }
  final String? emergencyPlanName = jsonConvert.convert<String>(json['emergencyPlanName']);
  if (emergencyPlanName != null) {
    getTheFeignEmergencyPlansPageEntity.emergencyPlanName = emergencyPlanName;
  }
  final String? emergencyPlanSelection = jsonConvert.convert<String>(json['emergencyPlanSelection']);
  if (emergencyPlanSelection != null) {
    getTheFeignEmergencyPlansPageEntity.emergencyPlanSelection = emergencyPlanSelection;
  }
  final String? emergencyResourceInvestigation = jsonConvert.convert<String>(json['emergencyResourceInvestigation']);
  if (emergencyResourceInvestigation != null) {
    getTheFeignEmergencyPlansPageEntity.emergencyResourceInvestigation = emergencyResourceInvestigation;
  }
  final String? estimateName = jsonConvert.convert<String>(json['estimateName']);
  if (estimateName != null) {
    getTheFeignEmergencyPlansPageEntity.estimateName = estimateName;
  }
  final String? expertReviewOpinions = jsonConvert.convert<String>(json['expertReviewOpinions']);
  if (expertReviewOpinions != null) {
    getTheFeignEmergencyPlansPageEntity.expertReviewOpinions = expertReviewOpinions;
  }
  final String? filingDate = jsonConvert.convert<String>(json['filingDate']);
  if (filingDate != null) {
    getTheFeignEmergencyPlansPageEntity.filingDate = filingDate;
  }
  final String? filingsStatusName = jsonConvert.convert<String>(json['filingsStatusName']);
  if (filingsStatusName != null) {
    getTheFeignEmergencyPlansPageEntity.filingsStatusName = filingsStatusName;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    getTheFeignEmergencyPlansPageEntity.id = id;
  }
  final String? initialReleaseDate = jsonConvert.convert<String>(json['initialReleaseDate']);
  if (initialReleaseDate != null) {
    getTheFeignEmergencyPlansPageEntity.initialReleaseDate = initialReleaseDate;
  }
  final int? majorHazardAssociation = jsonConvert.convert<int>(json['majorHazardAssociation']);
  if (majorHazardAssociation != null) {
    getTheFeignEmergencyPlansPageEntity.majorHazardAssociation = majorHazardAssociation;
  }
  final String? majorHazardIds = jsonConvert.convert<String>(json['majorHazardIds']);
  if (majorHazardIds != null) {
    getTheFeignEmergencyPlansPageEntity.majorHazardIds = majorHazardIds;
  }
  final String? planDocument = jsonConvert.convert<String>(json['planDocument']);
  if (planDocument != null) {
    getTheFeignEmergencyPlansPageEntity.planDocument = planDocument;
  }
  final String? planType = jsonConvert.convert<String>(json['planType']);
  if (planType != null) {
    getTheFeignEmergencyPlansPageEntity.planType = planType;
  }
  final String? planTypeName = jsonConvert.convert<String>(json['planTypeName']);
  if (planTypeName != null) {
    getTheFeignEmergencyPlansPageEntity.planTypeName = planTypeName;
  }
  final String? preparedBy = jsonConvert.convert<String>(json['preparedBy']);
  if (preparedBy != null) {
    getTheFeignEmergencyPlansPageEntity.preparedBy = preparedBy;
  }
  final String? preparedByDate = jsonConvert.convert<String>(json['preparedByDate']);
  if (preparedByDate != null) {
    getTheFeignEmergencyPlansPageEntity.preparedByDate = preparedByDate;
  }
  final String? preparedByPerson = jsonConvert.convert<String>(json['preparedByPerson']);
  if (preparedByPerson != null) {
    getTheFeignEmergencyPlansPageEntity.preparedByPerson = preparedByPerson;
  }
  final String? probationAccidentIds = jsonConvert.convert<String>(json['probationAccidentIds']);
  if (probationAccidentIds != null) {
    getTheFeignEmergencyPlansPageEntity.probationAccidentIds = probationAccidentIds;
  }
  final List<dynamic>? probationAccidentNames = (json['probationAccidentNames'] as List<dynamic>?)?.map(
          (e) => e).toList();
  if (probationAccidentNames != null) {
    getTheFeignEmergencyPlansPageEntity.probationAccidentNames = probationAccidentNames;
  }
  final String? probationDepartmentId = jsonConvert.convert<String>(json['probationDepartmentId']);
  if (probationDepartmentId != null) {
    getTheFeignEmergencyPlansPageEntity.probationDepartmentId = probationDepartmentId;
  }
  final String? processEncoding = jsonConvert.convert<String>(json['processEncoding']);
  if (processEncoding != null) {
    getTheFeignEmergencyPlansPageEntity.processEncoding = processEncoding;
  }
  final String? regularAssess = jsonConvert.convert<String>(json['regularAssess']);
  if (regularAssess != null) {
    getTheFeignEmergencyPlansPageEntity.regularAssess = regularAssess;
  }
  final int? regularAssessNum = jsonConvert.convert<int>(json['regularAssessNum']);
  if (regularAssessNum != null) {
    getTheFeignEmergencyPlansPageEntity.regularAssessNum = regularAssessNum;
  }
  final String? reviewComments = jsonConvert.convert<String>(json['reviewComments']);
  if (reviewComments != null) {
    getTheFeignEmergencyPlansPageEntity.reviewComments = reviewComments;
  }
  final String? riskAssessmentReport = jsonConvert.convert<String>(json['riskAssessmentReport']);
  if (riskAssessmentReport != null) {
    getTheFeignEmergencyPlansPageEntity.riskAssessmentReport = riskAssessmentReport;
  }
  final String? riskReportFileUrl = jsonConvert.convert<String>(json['riskReportFileUrl']);
  if (riskReportFileUrl != null) {
    getTheFeignEmergencyPlansPageEntity.riskReportFileUrl = riskReportFileUrl;
  }
  final int? riskReportPeripheryUnit = jsonConvert.convert<int>(json['riskReportPeripheryUnit']);
  if (riskReportPeripheryUnit != null) {
    getTheFeignEmergencyPlansPageEntity.riskReportPeripheryUnit = riskReportPeripheryUnit;
  }
  final int? toExamineStatus = jsonConvert.convert<int>(json['toExamineStatus']);
  if (toExamineStatus != null) {
    getTheFeignEmergencyPlansPageEntity.toExamineStatus = toExamineStatus;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    getTheFeignEmergencyPlansPageEntity.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    getTheFeignEmergencyPlansPageEntity.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    getTheFeignEmergencyPlansPageEntity.updateDate = updateDate;
  }
  final String? validPeriod = jsonConvert.convert<String>(json['validPeriod']);
  if (validPeriod != null) {
    getTheFeignEmergencyPlansPageEntity.validPeriod = validPeriod;
  }
  final String? workTypeIds = jsonConvert.convert<String>(json['workTypeIds']);
  if (workTypeIds != null) {
    getTheFeignEmergencyPlansPageEntity.workTypeIds = workTypeIds;
  }
  return getTheFeignEmergencyPlansPageEntity;
}

Map<String, dynamic> $GetTheFeignEmergencyPlansPageEntityToJson(GetTheFeignEmergencyPlansPageEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['FilingDate'] = entity.FilingDate;
  data['companyCode'] = entity.companyCode;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['emergencyId'] = entity.emergencyId;
  data['emergencyPlanLevel'] = entity.emergencyPlanLevel;
  data['emergencyPlanLevelName'] = entity.emergencyPlanLevelName;
  data['emergencyPlanName'] = entity.emergencyPlanName;
  data['emergencyPlanSelection'] = entity.emergencyPlanSelection;
  data['emergencyResourceInvestigation'] = entity.emergencyResourceInvestigation;
  data['estimateName'] = entity.estimateName;
  data['expertReviewOpinions'] = entity.expertReviewOpinions;
  data['filingDate'] = entity.filingDate;
  data['filingsStatusName'] = entity.filingsStatusName;
  data['id'] = entity.id;
  data['initialReleaseDate'] = entity.initialReleaseDate;
  data['majorHazardAssociation'] = entity.majorHazardAssociation;
  data['majorHazardIds'] = entity.majorHazardIds;
  data['planDocument'] = entity.planDocument;
  data['planType'] = entity.planType;
  data['planTypeName'] = entity.planTypeName;
  data['preparedBy'] = entity.preparedBy;
  data['preparedByDate'] = entity.preparedByDate;
  data['preparedByPerson'] = entity.preparedByPerson;
  data['probationAccidentIds'] = entity.probationAccidentIds;
  data['probationAccidentNames'] = entity.probationAccidentNames;
  data['probationDepartmentId'] = entity.probationDepartmentId;
  data['processEncoding'] = entity.processEncoding;
  data['regularAssess'] = entity.regularAssess;
  data['regularAssessNum'] = entity.regularAssessNum;
  data['reviewComments'] = entity.reviewComments;
  data['riskAssessmentReport'] = entity.riskAssessmentReport;
  data['riskReportFileUrl'] = entity.riskReportFileUrl;
  data['riskReportPeripheryUnit'] = entity.riskReportPeripheryUnit;
  data['toExamineStatus'] = entity.toExamineStatus;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['validPeriod'] = entity.validPeriod;
  data['workTypeIds'] = entity.workTypeIds;
  return data;
}

extension GetTheFeignEmergencyPlansPageEntityExtension on GetTheFeignEmergencyPlansPageEntity {
  GetTheFeignEmergencyPlansPageEntity copyWith({
    String? FilingDate,
    String? companyCode,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    String? emergencyId,
    String? emergencyPlanLevel,
    String? emergencyPlanLevelName,
    String? emergencyPlanName,
    String? emergencyPlanSelection,
    String? emergencyResourceInvestigation,
    String? estimateName,
    String? expertReviewOpinions,
    String? filingDate,
    String? filingsStatusName,
    String? id,
    String? initialReleaseDate,
    int? majorHazardAssociation,
    String? majorHazardIds,
    String? planDocument,
    String? planType,
    String? planTypeName,
    String? preparedBy,
    String? preparedByDate,
    String? preparedByPerson,
    String? probationAccidentIds,
    List<dynamic>? probationAccidentNames,
    String? probationDepartmentId,
    String? processEncoding,
    String? regularAssess,
    int? regularAssessNum,
    String? reviewComments,
    String? riskAssessmentReport,
    String? riskReportFileUrl,
    int? riskReportPeripheryUnit,
    int? toExamineStatus,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? validPeriod,
    String? workTypeIds,
  }) {
    return GetTheFeignEmergencyPlansPageEntity()
      ..FilingDate = FilingDate ?? this.FilingDate
      ..companyCode = companyCode ?? this.companyCode
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..emergencyId = emergencyId ?? this.emergencyId
      ..emergencyPlanLevel = emergencyPlanLevel ?? this.emergencyPlanLevel
      ..emergencyPlanLevelName = emergencyPlanLevelName ?? this.emergencyPlanLevelName
      ..emergencyPlanName = emergencyPlanName ?? this.emergencyPlanName
      ..emergencyPlanSelection = emergencyPlanSelection ?? this.emergencyPlanSelection
      ..emergencyResourceInvestigation = emergencyResourceInvestigation ?? this.emergencyResourceInvestigation
      ..estimateName = estimateName ?? this.estimateName
      ..expertReviewOpinions = expertReviewOpinions ?? this.expertReviewOpinions
      ..filingDate = filingDate ?? this.filingDate
      ..filingsStatusName = filingsStatusName ?? this.filingsStatusName
      ..id = id ?? this.id
      ..initialReleaseDate = initialReleaseDate ?? this.initialReleaseDate
      ..majorHazardAssociation = majorHazardAssociation ?? this.majorHazardAssociation
      ..majorHazardIds = majorHazardIds ?? this.majorHazardIds
      ..planDocument = planDocument ?? this.planDocument
      ..planType = planType ?? this.planType
      ..planTypeName = planTypeName ?? this.planTypeName
      ..preparedBy = preparedBy ?? this.preparedBy
      ..preparedByDate = preparedByDate ?? this.preparedByDate
      ..preparedByPerson = preparedByPerson ?? this.preparedByPerson
      ..probationAccidentIds = probationAccidentIds ?? this.probationAccidentIds
      ..probationAccidentNames = probationAccidentNames ?? this.probationAccidentNames
      ..probationDepartmentId = probationDepartmentId ?? this.probationDepartmentId
      ..processEncoding = processEncoding ?? this.processEncoding
      ..regularAssess = regularAssess ?? this.regularAssess
      ..regularAssessNum = regularAssessNum ?? this.regularAssessNum
      ..reviewComments = reviewComments ?? this.reviewComments
      ..riskAssessmentReport = riskAssessmentReport ?? this.riskAssessmentReport
      ..riskReportFileUrl = riskReportFileUrl ?? this.riskReportFileUrl
      ..riskReportPeripheryUnit = riskReportPeripheryUnit ?? this.riskReportPeripheryUnit
      ..toExamineStatus = toExamineStatus ?? this.toExamineStatus
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..validPeriod = validPeriod ?? this.validPeriod
      ..workTypeIds = workTypeIds ?? this.workTypeIds;
  }
}
